//
//  UIView+HDShouFeiMIngXiAlter.h
//  app
//
//  Created by apple on 2017/7/19.
//  Copyright © 2017年 hdaren. All rights reserved.
//

#import <UIKit/UIKit.h>


#define kDeviceWidth [UIScreen mainScreen].bounds.size.width
#define KDeviceHeight [UIScreen mainScreen].bounds.size.height
#define KDeviceFrame [UIScreen mainScreen].bounds
#define kWindow [UIApplication sharedApplication].keyWindow

#define kRGB(R,G,B,ALPHA) [UIColor colorWithRed:R/255.0 green:G/255.0 blue:B/255.0 alpha:ALPHA]
#define kRGBRef(R,G,B,ALPHA) [kRGB(R,G,B,ALPHA) CGColor]

@interface  HDShouFeiMIngXiAlter : UIView
{
    UIView *transparentView;//背景控制 点击移除视图
    UIView *shoufeiView;//主视图
    
@private
    CGFloat actionSheetHeight;//弹出菜单高度
    CGFloat actionSheetY;//弹出菜单
    
}

/**
 *  显示在哪个视图上
 *
 *  @param view 要显示的父视图
 */
- (void)showShouFeiViewInView:(UIView *)view;
- (void)showShouFeiViewSheet;

/**
 *  隐藏事件
 */
- (void)hideShouFeiViewSheet;

-(id)initWithParams:(NSMutableArray*)array;

@end
